import instance from '@/utils/request'

//获得验证码
export const getCaptchaCode=()=>{
  return instance.request({
    url:'/user/captchaCode',
    method:'get'
  });
};

//登录
export const login=(data)=>{
  return instance.request({
		url:'/user/login',
		method:'post',
		data:data
	});

}
